//
//  GouWuChe.m
//  EJLX
//
//  Created by adc on 15/11/23.
//  Copyright © 2015年 江苏一键联信息科技有限公司. All rights reserved.
//

#import "GouWuChe.h"

@implementation GouWuChe

+(id)userWithDictionary:(NSDictionary*)userDic
{
    return [[self alloc]initWithDictionary:userDic];
}
-(id)initWithDictionary:(NSDictionary*)userDic
{
    self = [super init];
    if (self)
    {
        _groupId=[userDic[@"groupId"]intValue];
         _shopId=[userDic[@"shopId"]intValue];
         _itemId=[userDic[@"itemId"]intValue];
         _productId=[userDic[@"productId"]intValue];
         _price=[userDic[@"price"]intValue];
         _discountPrice=[userDic[@"discountPrice"]intValue];
         _count=[userDic[@"count"]intValue];
        _shopName=[userDic[@"shopName"]copy];
        _shopAvatar=[userDic[@"shopAvatar"]copy];
        _tip=[userDic[@"tip"]copy];
        _name=[userDic[@"name"]copy];
        _avatar=[userDic[@"avatar"]copy];
        _desc=[userDic[@"desc"]copy];
        
        
    }
    return self ;
}


@end
